package com.zg.third.qcc.constant;

import com.zg.common.core.exception.IException;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/21 16:40
 */

public enum ThirdE implements IException {

    QCC_ERROR(10000, "企查查返回接口为空");



    private Integer code;
    private String msg;

    ThirdE(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        String s = ThirdConstant.SYS_CODE + String.format("%05d", this.code);
        return  Integer.valueOf(s);
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
